package service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import dao.CategoriesDao;
import pojo.Categories;
import service.CategoriesService;

@Service
@Transactional
public class CategoriesServiceImpl implements CategoriesService {

	@Resource(name="categoriesDaoImpl")
	private CategoriesDao categoriesDao;

	@Override
	public List<Categories> findAll() {
		return categoriesDao.findAll();
	}

	@Override
	public Categories add(Categories categories) {
		return categoriesDao.add(categories);
	}

	@Override
	public Categories load(String categoryId) {
		return categoriesDao.load(categoryId);
	}
	

}
